getContextForLanguage
Gets the context which respects the per-app locales locale. This API is specifically for developers who set the per-app locales via setApplicationLocales, but who needs to use the context out of androidx.appcompat.app.AppCompatActivity scope.
The developers can override the returned context in Application's attachBaseContext, so that developers can get the localized string via application's context.
Compatibility behavior:
- API 17 and above, the locale in the context returned by this method will respect the the per-app locale.
- API 16 and earlier, this method directly return the Context